DescribeSecurityGroupAttribute
Description
call DescribeSecurityGroupAttribute to query the security group rules of a security group.
Request Method
POST
Request Path
/apsara/route/Ecs/DescribeSecurityGroupAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
SecurityGroupId | BODY | string | Yes | sg-bp1gxw6bznjjvhu3g*** | security group ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the security group. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
NicType | BODY | string | No | intranet | the network card type of the security group rule. The value range of the classic network type security group: internet (default): public network intranet: intranet description a single call can only query the security group rules of 1 network card type. please query all types in two calls. the value range of the vpc type security group: intranet (default): intranet description if a internet or null value is passed in, it will be converted to intranet by default. |
Direction | BODY | string | No | all | security group rule authorization direction. Value range: egress: security group exit direction ingress: security group entry direction all: Do not distinguish directions default value: all. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}